package com.ruoyi.pos.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pos.mapper.ExchangeOrderMapper;
import com.ruoyi.pos.domain.ExchangeOrder;
import com.ruoyi.pos.service.IExchangeOrderService;

/**
 * exchange_orderService业务层处理
 * 
 * @author ruoyi
 * @date 2021-05-21
 */
@Service
public class ExchangeOrderServiceImpl implements IExchangeOrderService 
{
    @Autowired
    private ExchangeOrderMapper exchangeOrderMapper;

    /**
     * 查询exchange_order
     * 
     * @param id exchange_orderID
     * @return exchange_order
     */
    @Override
    public ExchangeOrder selectExchangeOrderById(Long id)
    {
        return exchangeOrderMapper.selectExchangeOrderById(id);
    }

    /**
     * 查询exchange_order列表
     * 
     * @param exchangeOrder exchange_order
     * @return exchange_order
     */
    @Override
    public List<ExchangeOrder> selectExchangeOrderList(ExchangeOrder exchangeOrder)
    {
        return exchangeOrderMapper.selectExchangeOrderList(exchangeOrder);
    }

    /**
     * 新增exchange_order
     * 
     * @param exchangeOrder exchange_order
     * @return 结果
     */
    @Override
    public int insertExchangeOrder(ExchangeOrder exchangeOrder)
    {
        return exchangeOrderMapper.insertExchangeOrder(exchangeOrder);
    }

    /**
     * 修改exchange_order
     * 
     * @param exchangeOrder exchange_order
     * @return 结果
     */
    @Override
    public int updateExchangeOrder(ExchangeOrder exchangeOrder)
    {
        return exchangeOrderMapper.updateExchangeOrder(exchangeOrder);
    }

    /**
     * 批量删除exchange_order
     * 
     * @param ids 需要删除的exchange_orderID
     * @return 结果
     */
    @Override
    public int deleteExchangeOrderByIds(Long[] ids)
    {
        return exchangeOrderMapper.deleteExchangeOrderByIds(ids);
    }

    /**
     * 删除exchange_order信息
     * 
     * @param id exchange_orderID
     * @return 结果
     */
    @Override
    public int deleteExchangeOrderById(Long id)
    {
        return exchangeOrderMapper.deleteExchangeOrderById(id);
    }
}
